package com.ddc.study.feature.main.project;

import com.ddc.study.base.BasePresenter;
import com.ddc.study.base.BaseView;
import com.ddc.study.entity.Tree;

import java.util.List;

import androidx.annotation.Nullable;

/**
 * Created on 2018/5/22.
 *
 * @author lshun
 * @version 1.0
 */
interface ProjectContract {
    interface IModel {
    }

    interface IView extends BaseView {
        void loadProjectTreeSuccess(@Nullable List<Tree> data);

        void loadProjectTreeFailed(String msg);
    }

    abstract class IPresenter extends BasePresenter<IView> {
        abstract void loadProjectTree();
    }
}
